<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class PostTypeDef
{
    const TEXT = 1;
    const IMAGE =2;
    const VIDEO = 3;
    const AUDIO = 4;
    const LINK = 5;
    
    public static $supportTypes = array(self::TEXT, self::IMAGE, self::VIDEO, self::AUDIO, self::LINK);
    public static function isSupport($type)
    {
        if (empty($type))
        {
            return false;
        }
        return isset(self::$supportTypes[$type]);
    }
}

class PostStatusDef
{
    const NORMAL = 1;
    const DELETED = 2;
}

class ReplyStatusDef
{
    const NORMAL = 1;
    const DELETED = 2;
}

class PostPriority
{
    const ESSENCE = 0x0001;
    const BUMP_TO_TOP = 0x0002;
    const PROMOTE = 0x0004;
}

class PostConfig
{
    const FORBID_REPLY = 0x0001;
    const FORBID_FORWARD = 0x0002;
}
